package com.github.datalineage.graphdb;

import com.github.datalineage.data.Node;
import com.github.datalineage.data.Relation;
import com.github.datalineage.data.Tuple;

import java.util.List;

public interface GraphAdapter {
    void open(String url, String user, String password);
    List<Node> searchEffect(String nodeType, String nodeCode);
    List<Tuple> searchLink(String nodeType, String relationCode, String nodeCode);
    void creatLink(Node node1, Node node2, Relation relation);
    void close();
}
